package com.laowu.netty.util;

import java.util.Random;

/**
 * @author laowu
 * @date 2020/11/26 17:56
 * @desc
 */
public class SessionIdGenerator {

    public static String generate(){
        Random random = new Random();
        String result="";
        for(int i=0;i<8;i++){
            //首字母不能为0
            result += (random.nextInt(9)+1);
        }
        return result;
    }
}
